package com.mgface.framework.plugins;

import javax.ws.rs.ApplicationPath;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.glassfish.jersey.server.ResourceConfig;
import org.springframework.stereotype.Component;

@Component("jerseyConfig")
@ApplicationPath("/jersey")
public class JerseyConfig extends ResourceConfig {
	private static final Logger log = LogManager.getLogger(JerseyConfig.class);

	public JerseyConfig() {
		log.info("**********注册Jersey自定义资源**********");
		register(JerseyResource.class);
	}
}
